package de.koller.zero.engine.control;

import de.koller.zero.arch.ZNode;
import de.koller.zero.model.Player;

public class RealmControl extends ZNode {

	public void createPlayer() {
		boolean added;
		do {
			added = root.realm.addPlayer( Player.create() );
		} while( !added );
	}
	
	@Override
	protected void update( Object... refernces ) {
		super.update( refernces );
		
		root.realm.setRound( root.realm.getRound() + 1 );
	}
	
}
